namespace Peninsula.DataAccess.EF.SqlServer.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class _012 : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.RepairOrder", "HouseholdsId", c => c.String(maxLength: 50));
            CreateIndex("dbo.RepairOrder", "HouseholdsId");
            AddForeignKey("dbo.RepairOrder", "HouseholdsId", "dbo.Households", "Id");
        }
        
        public override void Down()
        {
            DropForeignKey("dbo.RepairOrder", "HouseholdsId", "dbo.Households");
            DropIndex("dbo.RepairOrder", new[] { "HouseholdsId" });
            DropColumn("dbo.RepairOrder", "HouseholdsId");
        }
    }
}
